# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
 
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import os
import sys
 
sys.path.insert(0, os.path.abspath('..'))  # 假设你的代码在项目根目录下
 
project = 'adas_echarts'
copyright = '2025, gewenbin'
author = 'gewenbin'
release = '0.1.1.11'
 
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.napoleon',  # 如果你使用 Google 或 NumPy 风格的 docstring
    'sphinx.ext.viewcode',
    'sphinx_rtd_theme',
    'sphinx_autodoc_typehints',
]
 
templates_path = ['_templates']
exclude_patterns = []
versions = [1]
language = 'zh_CN'
 
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
 
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
autodoc_default_options = {
    'members': True,           # 显示所有成员（函数、类、属性等）
    'undoc-members': True,     # 显示没有 docstring 的成员
    'show-inheritance': True,  # 显示继承关系
    'show_sourcelink': False,
}